<template>
  <view class="wine-cooler">
    <SimpleControl :control="control">
      <WineCoolerSetting :control="control" />
    </SimpleControl>

    <!-- 固件升级成功 -->
    <SuccessAcknowledge v-if="otaHelper" :helper="otaHelper" />
  </view>
</template>

<script setup lang="ts">
// 注意：请勿将onShareAppMessage删除
import { onShareAppMessage } from '@dcloudio/uni-app'
import SimpleControl from '@/pages/appliance/view/control/simpleControl.vue'
import type { WineCoolerController } from '@/controller/WineCooler/definition'
import WineCoolerSetting from './WineCoolerSetting.vue'
import SuccessAcknowledge from '../settings/ota/modals/successAcknowledge.vue'
import { useInhouseOtaHelper } from '../view/useOtaHelper'

const props = defineProps<{
  control: WineCoolerController.Control
}>()
const control = props.control

/**
 * OTA升级
 */
const otaHelper = useInhouseOtaHelper(control)
</script>
